import SvgIcon from '@/components/SvgIcon/index.vue' // svg component

// const req = require.context('./svg', false, /\.svg$/)
const req = import.meta.glob('./svg/*.svg', { eager: true })

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const requireAll = (requireContext:any) => requireContext.keys().map(requireContext)
requireAll(req)

export default SvgIcon
